.class Lcom/estrongs/android/pop/app/filetransfer/p$b;
.super Ljava/lang/Thread;
.source "WifiScanUtil.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/filetransfer/p;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "b"
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/pop/app/filetransfer/p;


# direct methods
.method constructor <init>(Lcom/estrongs/android/pop/app/filetransfer/p;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/p$b;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .line 1
    :try_start_0
    new-instance v0, Ljava/net/DatagramSocket;

    const/16 v1, 0x17eb

    invoke-direct {v0, v1}, Ljava/net/DatagramSocket;-><init>(I)V

    const/16 v1, 0x400

    new-array v2, v1, [B

    .line 2
    new-instance v3, Ljava/net/DatagramPacket;

    invoke-direct {v3, v2, v1}, Ljava/net/DatagramPacket;-><init>([BI)V

    .line 3
    invoke-virtual {v0, v3}, Ljava/net/DatagramSocket;->receive(Ljava/net/DatagramPacket;)V

    .line 4
    new-instance v0, Ljava/lang/String;

    invoke-virtual {v3}, Ljava/net/DatagramPacket;->getData()[B

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v3}, Ljava/net/DatagramPacket;->getLength()I

    move-result v3

    invoke-direct {v0, v1, v2, v3}, Ljava/lang/String;-><init>([BII)V

    const-string v1, "OK"

    .line 5
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/filetransfer/p$b;->a:Lcom/estrongs/android/pop/app/filetransfer/p;

    invoke-static {v0}, Lcom/estrongs/android/pop/app/filetransfer/p;->h(Lcom/estrongs/android/pop/app/filetransfer/p;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 7
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :cond_0
    :goto_0
    return-void
.end method
